import { Router } from 'express';
import { SourcesController } from '../controllers/sourcesController';
import { authMiddleware } from '../middlewares/authMiddleware';
export default (): Router => {
  const router = Router();
  const sourcesController = new SourcesController();

  // 公开路由：注册和登录

  // // 受保护的路由：需要登录才能访问
  router.get('/getUploadToken', authMiddleware, sourcesController.getUploadToken);

  return router;
};